<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/context/mytags.jsp"%>
<t:base type="jquery,easyui,tools,DatePicker"></t:base>
<div class="easyui-layout" fit="true">
  <div region="center" style="padding:0px;border:0px">
  <t:datagrid name="tKpOrderOneList" checkbox="false" pagination="true"  sortName="id" sortOrder="desc" fitColumns="false" title="损耗补偿" actionUrl="tKpOrderOneController.do?datagrid&orderType=损耗补偿" idField="id" fit="true" queryMode="group">
   <t:dgCol title="操作" field="opt" width="100"></t:dgCol>

   <t:dgCol title="订单号"  field="id"  query="true"  queryMode="single"  width="60"></t:dgCol>
     <t:dgCol title="订单日期"  field="docDate"  formatter="yyyy-MM-dd"  query="true"  queryMode="group"  width="80"></t:dgCol>
   <t:dgCol title="订单状态"  field="orStatus"  query="true"  queryMode="single"  width="80"></t:dgCol>
   <t:dgCol title="订单类型"  field="orderType"  query="true"  queryMode="single"  width="80"></t:dgCol>
   <t:dgCol title="客户编码"  field="cusCode"  hidden="true"  queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="客户名称"  field="cusName" dictionary="t_kp_cus,cus_name,cus_name"  query="true"  queryMode="single"  width="80"></t:dgCol>
   <t:dgCol title="客户类型"  field="cusType"  queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="工地编码"  field="gdCode"  hidden="true"  queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="工地名称"  field="gdName"  query="true"  queryMode="single"  width="100"></t:dgCol>
   <t:dgCol title="产品编码"  field="cpCode"  hidden="true"  queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="产品名称"  field="cpName"  query="true"  queryMode="single"    width="120"></t:dgCol>
   <t:dgCol title="规格"  field="cpGuige"  queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="等级"  field="cpDengji"  hidden="true"  queryMode="single"  width="60"></t:dgCol>
   <t:dgCol title="单位"  field="cpJifei"  queryMode="single"  width="60"></t:dgCol>
   <t:dgCol title="数量"  field="orQty"  queryMode="single"  width="60"></t:dgCol>
   <t:dgCol title="方量"  field="by1"     queryMode="single"  width="60"></t:dgCol>
   <t:dgCol title="单价"  field="cpJiage"  queryMode="single"  width="60"></t:dgCol>
   <t:dgCol title="总价值"  field="orAmount"   queryMode="single"  width="80"></t:dgCol>
   <t:dgCol title="托盘数"  field="orTuopan"  queryMode="single"  width="60"></t:dgCol>
   <t:dgCol title="备注"  field="orRemark"  query="true"  queryMode="single"  width="120"></t:dgCol>
   <%--<t:dgCol title="备用1"  field="by1"  hidden="true"  queryMode="single"  width="120"></t:dgCol>--%>
   <t:dgCol title="备用2"  field="by2"  hidden="true"  queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="备用3"  field="by3"  hidden="true"  queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="备用4"  field="by4"  hidden="true"  queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="备用5"  field="by5"  hidden="true"  queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="备用6"  field="by6"  hidden="true"  queryMode="single"  width="120"></t:dgCol>

   <t:dgCol title="创建人名称"  field="createName"  hidden="true"  queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="开票人"  field="createBy"    queryMode="single"  width="80"></t:dgCol>
   <t:dgCol title="开票日期"  field="createDate"  formatter="yyyy-MM-dd"     queryMode="single"  width="100"></t:dgCol>
   <t:dgCol title="更新人名称"  field="updateName"  hidden="true"  queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="更新人登录名称"  field="updateBy"  hidden="true"  queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="更新日期"  field="updateDate"  formatter="yyyy-MM-dd"  hidden="true"  queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="所属部门"  field="sysOrgCode"  hidden="true"  queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="所属公司"  field="sysCompanyCode"  hidden="true"  queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="流程状态"  field="bpmStatus"  hidden="true"  queryMode="single"  dictionary="bpm_status"  width="120"></t:dgCol>


   <t:dgConfOpt url="tKpOrderOneController.do?doUpdatesp&id={id}&orStatus=已审批" title="审批" message="确定？"  urlclass="ace_button" exp="orStatus#eq#已提交"/>
   <t:dgConfOpt url="tKpOrderOneController.do?doUpdatesp&id={id}&orStatus=已开票" title="审核" message="确定？"  urlclass="ace_button" exp="orStatus#eq#已审批"/>

   <%--<t:dgDelOpt title="删除" url="tKpOrderOneController.do?doDel&id={id}" urlclass="ace_button"  urlfont="fa-trash-o"/>--%>
   <%--<t:dgToolBar title="正常销售" icon="icon-add" url="tKpOrderOneController.do?goAdd&orderType=正常销售" funname="add"></t:dgToolBar>--%>
   <%--<t:dgToolBar title="损耗补偿" icon="icon-add" url="tKpOrderOneController.do?goAdd&orderType=损耗补偿" funname="add"></t:dgToolBar>--%>
   <%--<t:dgToolBar title="赊销销售" icon="icon-add" url="tKpOrderOneController.do?goAdd&orderType=赊销销售" funname="add"></t:dgToolBar>--%>

   <%--<t:dgToolBar title="编辑" icon="icon-edit" url="tKpOrderOneController.do?goUpdate" funname="update"></t:dgToolBar>--%>
   <%--<t:dgToolBar title="批量删除"  icon="icon-remove" url="tKpOrderOneController.do?doBatchDel" funname="deleteALLSelect"></t:dgToolBar>--%>
   <t:dgToolBar title="查看" icon="icon-search" url="tKpOrderOneController.do?goUpdate" funname="detail"></t:dgToolBar>
   <%--<t:dgToolBar title="导入" icon="icon-put" funname="ImportXls"></t:dgToolBar>--%>
   <t:dgToolBar title="导出" icon="icon-putout" funname="ExportXls"></t:dgToolBar>
   <%--<t:dgToolBar title="模板下载" icon="icon-putout" funname="ExportXlsByT"></t:dgToolBar>--%>
  </t:datagrid>
  </div>
 </div>
 <script src = "webpage/com/yserp/kp/tKpOrderOneList.js"></script>		
 <script type="text/javascript">
 $(document).ready(function(){
 });
 
   
 
//导入
function ImportXls() {
	openuploadwin('Excel导入', 'tKpOrderOneController.do?upload', "tKpOrderOneList");
}

//导出
function ExportXls() {
	JeecgExcelExport("tKpOrderOneController.do?exportXls","tKpOrderOneList");
}

//模板下载
function ExportXlsByT() {
	JeecgExcelExport("tKpOrderOneController.do?exportXlsByT","tKpOrderOneList");
}

 </script>